package com.example.car.api

import com.example.car.entity.CarAddEntity
import com.example.car.entity.CarAddParam
import com.example.car.entity.CarPayEntity
import com.example.car.entity.CarPayParam
import com.example.car.entity.CarStopEntity
import com.example.car.entity.CarStopEntityItem
import com.example.car.model.CarRepository
import com.example.car.model.CarResultData
import com.example.common.view.api.BaseApiService
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface CarApiService :BaseApiService{
    //增加车辆信息
    @POST("/api/vehicles")
    suspend fun getAddCar(@Body carAddParam: CarAddParam):CarResultData<CarAddEntity>
    //增加消费记录
    @POST("/api/parking-payments")
    suspend fun getAddCarPay(@Body carPayParam: CarPayParam):CarResultData<CarPayEntity>
    //获取停车记录
    @GET("/api/parking-payments")
    suspend fun getCarStop():CarResultData<List<CarStopEntityItem>>
}